set(CMAKE_SAFETYTEST "${CMAKE_SAFETYTEST_ARG}")
if(CMAKE_SAFETYTEST STREQUAL "CMAKE_SAFETYTEST_ARG_OFF")
    set(CMAKE_CXX_FLAGS "-g -fprofile-arcs -ftest-coverage")
    set(CMAKE_C_FLAGS "-g -fprofile-arcs -ftest-coverage")
endif()
if(HAVE_DRM)
    add_subdirectory(drm)
endif()
if (HAVE_LINUX_FB_H)
    add_subdirectory(fbdev)
endif()
if(HAVE_LIBHYBRIS)
    add_subdirectory(hwcomposer)
endif()
add_subdirectory(virtual)
add_subdirectory(wayland)
add_subdirectory(x11)
